export default function(props:any){
    const name=props.className;
    let className='w-svg';
    if(name){
        className+=' '+name;
    }
    let fn=props.onClick;
    let fnClick;
    if(fn){
        fnClick=(e:any)=>{
            fn(e);
        };
    }
    return (
        <span onClick={fnClick} className={className} style={{fontSize:props.fontSize,color:props.color}}>
            <svg viewBox="0 0 1024 1024" width="1em" height="1em" fill="currentColor">
                <path d="M512 928c229.75 0 416-186.25 416-416S741.75 96 512 96 96 282.25 96 512 282.25 928 512 928zM448 704 448 320l192 192L448 704z"></path>
            </svg>
        </span>
    )
}